package com.Jiang.service.Role;

import com.Jiang.dao.DateBase;
import com.Jiang.dao.Role.RoleDao;
import com.Jiang.dao.Role.RoleDaoImplements;
import com.Jiang.pojo.Role;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Vector;

public class RoleServiceImplements implements RoleService {
    RoleDao roleDao;
    public RoleServiceImplements(){
        roleDao=new RoleDaoImplements();
    }
    @Override
    public Vector<Role> getRoleList() throws SQLException {
        Connection connection= DateBase.getConnection();
        Vector<Role> userList = roleDao.getUserList(connection);
        connection.close();
        return  userList;
    }
}
